package bill

import (
	"crmeb-common/global"
	"math/big"
)

// UserBill 用户账单表
type UserBill struct {
	global.BaseModel
	Uid int32 `json:"uid" gorm:"column=uid;comment:用户uid"`

	LinkId string `json:"linkId" gorm:"column=link_id;comment:关联id"`

	Pm int32 `json:"pm" gorm:"column=pm;comment:0 = 支出 1 = 获得"`

	Title string `json:"title" gorm:"column=title;comment:账单标题"`

	Category string `json:"category" gorm:"column=category;comment:明细种类"`

	Type string `json:"type" gorm:"column=type;comment:明细类型"`

	Number big.Float `json:"number" gorm:"column=number;comment:明细数字"`

	Balance big.Float `json:"balance" gorm:"column=balance;comment:剩余"`

	Mark string `json:"mark" gorm:"column=mark;comment:备注"`

	Status int32 `json:"status" gorm:"column=status;comment:0 = 带确定 1 = 有效 -1 = 无效"`
}
